package lib.FileSystem;

import java.io.*;

public class Check {
	/**
	 * Filesystem check functions
	 */
	public static boolean EXISTS(String Path) {
		File file = new File(Path);
		return file.exists();
	}

	public static boolean DIR_IS_EMPTY(String Path) {
		File file = new File(Path);
		if (file.isDirectory()) {
			if (file.list().length > 0) {
				return false;
			} else {
				return true;
			}
		} else {
			return false;
		}
	}
}
